package com.itheima.date8;

import javax.xml.crypto.Data;
import java.time.LocalDateTime;
import java.util.Date;

public class Demo01 {

    public static void main(String[] args) {
        Date date = new Date();
        Date date1 = new Date(date.getTime() + 1000 * 60 * 60 * 24 * 365L);
        System.out.println(date1);
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime dateTime = now.plusYears(1);
        System.out.println(dateTime);

    }

    public static void jdk7date() {

    }


}
